package com.magenta.maxoptra.gis.distancematrix.events;

import com.magenta.maxoptra.gis.distancematrix.Event;
import com.magenta.maxoptra.gis.distancematrix.UpdateResultType;

/**
 * @author Sergey Grachev
 */
public final class EventsFactory {

    private EventsFactory() {
    }

    public static Event newMatrixUpdateFinished(final long groupId, final long matrixId, final UpdateResultType resultType) {
        return new MatrixUpdateFinishedEvent(groupId, matrixId, resultType);
    }

    public static Event newMatrixUpdateProgress(final long groupId, final long matrixId, final long total, final long progress) {
        return new MatrixUpdateProgressEvent(groupId, matrixId, total, progress);
    }
}
